<?php
session_start();
isLogin();
if(isset($_POST["Submits"])){
	if(mysql_query("update ".$prefix."artset set name='".$_POST['name']."',keywords='".$_POST['keywords']."',description='".$_POST['description']."',postfix='".$_POST['postfix']."',navcount='".$_POST['navcount']."' where id=1")){
		reload_js("修改成功","index.php?cmd=artset");
	}else{
		reload_js("修改失败，原因：程序错误，请联系技术人员进行修改","index.php");
	}
}
?>
<script language="javascript" src="../templates/<?php echo $moban;?>/js/common.js"></script>
<script language="javascript">
changeWebTitle('文章系统设置');

</script>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>

<div class="ContentRight">
    <div class="ContentRightTop">
      <div class="BarLeft"></div>
      <div class="ContentRightTopText">系统设置</div>
      <div class="BarRight"></div>
      <div class="Cal"></div>
    </div>
    <div class="ContentRightBox">
	<form name="websetting" action="" method="post" >
      <table width="100%" cellpadding="0" class="Table1" bordercolor="#4ab902" border="1" cellspacing="0">
        <tr>
          <td width="28%" height="25" align="right">文章扩展名：</td>
          <td width="72%"><input name="postfix" type="text" id="postfix"  value="<?php echo $art['postfix']?>"/>
            <span class="STYLE1">*</span>&nbsp;</td>
        </tr>
        <tr>
          <td height="25" align="right">文章系统名称：</td>
          <td><input name="name" type="text" id="name"  value="<?php echo $art['name']?>"/>
            <span class="STYLE1">*</span>&nbsp;</td>
        </tr>
        <tr>
          <td height="25" align="right">文章系统关键字：</td>
          <td><span class="STYLE1">
            <textarea name="keywords" rows="5" id="keywords"><?php echo $art['keywords']?></textarea>
          *</span>&nbsp;最多50个字，请控制字数，否则提交不能成功</td>
        </tr>
        <tr>
          <td height="25" align="right">文章系统描述：</td>
          <td><span class="STYLE1">
            <textarea name="description" rows="5" id="description"><?php echo $art['description']?></textarea>
          *</span>&nbsp;200字以内</td>
        </tr>
        <tr>
          <td height="25" align="right">文章顶部导航显示个数：</td>
          <td>          <input name="navcount" type="text" id="navcount"  value="<?php echo $art['navcount']?>"/></td>
        </tr>
        <tr>
          <td height="25" align="right">版权所有：</td>
          <td><a href="http://www.fengsh8.com" target="_blank">风尚淘客程序</a></td>
        </tr>
        <tr>
          <td height="25" align="right">&nbsp;</td>
          <td>
            <input name="Submits" type="submit" id="Submits" value=" 提  交" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input name="Reset" type="reset" id="Reset" value=" 重 置 " />          </td>
        </tr>
      </table>
	  </form>
    </div>
    <div class="Cal"></div>
  </div>